<div id="content-right" style="width: 100%;">
	<div id="add-product">
		<div id="sidebar-top-product" class="black">
			<div id="img-product" class="left white">
				<?php echo $title?>
			</div>
			<div id="img-back" class="right white">
				<a class="white" href="javascript:;" onclick="history.go(-1)">Quay lại trang trước</a> 
			</div>
			<div class="clear"></div>
		</div>
		<div class="form-product">
			<?php if (isset($_SESSION['error_add']) && !empty($_SESSION['error_add'])){?>
				<div class="form-add">
					<?php echo '<font style="color:red; text-align:center; font-size:15px;">'.$_SESSION['error_add'].'</font>'?>
				</div>
        	<?php }$_SESSION['error_add'] = NULL;?>				
			<form action="" method="post" name="add" id="add">
				<input type="hidden" id="base_url" name="base_url" value="<?php echo base_url()?>" />
            		<div class="form-add">
						<label class="left black">Tỉnh/Thành Phố</label>
                        <select name="province_id" id="province_id" class="selectText">
                        	<option value="">=== Chọn tỉnh/thành phố ===</option>
                        	<?php foreach ($provinces as $prov){?>
                        		<option value="<?php echo $prov['id']?>" <?php if (isset($_SESSION['province_id']) && !empty($_SESSION['province_id'])){ if ($_SESSION['province_id'] == $prov['id']) echo 'selected=selected';}?>><?php echo $prov['name']?></option>
                        	<?php }?>
                        </select>
					</div>
            		<div class="form-add">
						<label class="left black">Tên quận/huyện</label>
                        <input type="text" name="name" class="required" />
					</div>
					<div class="form-add">
						<label class="left black">Ảnh</label>
						<input name="image" type="text" id="image" onclick="JavaScript:OpenFileManager('image','nama_article');" class="required" />
					<a onclick="JavaScript:OpenFileManager('image','nama_article');" href="javascript:"><b style="color:blue;">Chọn ảnh</b></a>
				</div>
				<div class="form-add">
					<label class="left black">Hiển thị</label>
					<div class="check-option">
						<ul>
							<li><input type="radio" name="status" value="1" checked="checked" /> Yes</li>
							<li><input type="radio" name="status" value="0" /> No</li>
						</ul>
					</div>
				</div>
				<div class="clear"></div>
				<div class="button-product">
					<input type="submit" class="save_add" name="cmd" value="Save & Add" style="color: #FFF; font-weight: bold; padding-bottom: 5px;"/>
					<input type="submit" class="submit-product" name="cmd" value="Add" style="margin-left: 15px; color: #FFF; font-weight: bold; padding-bottom: 5px;" />
					<input type="reset" class="reset-product"  value='Cancel' style="color: #FFF; font-weight: bold; padding-bottom: 5px;" />
				</div>
				<div class="clear"></div>
			</form>
		</div>
	</div>
</div>                            